/**
 * output package name
 */
package com.kingdee.eas.scm.common;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class PurchaseTypeEnum extends IntEnum
{
    public static final int PURCHASE_VALUE = 0;
    public static final int SUBCONTRACT_VALUE = 1;

    public static final PurchaseTypeEnum PURCHASE = new PurchaseTypeEnum("PURCHASE", PURCHASE_VALUE);
    public static final PurchaseTypeEnum SUBCONTRACT = new PurchaseTypeEnum("SUBCONTRACT", SUBCONTRACT_VALUE);

    /**
     * construct function
     * @param integer purchaseTypeEnum
     */
    private PurchaseTypeEnum(String name, int purchaseTypeEnum)
    {
        super(name, purchaseTypeEnum);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static PurchaseTypeEnum getEnum(String purchaseTypeEnum)
    {
        return (PurchaseTypeEnum)getEnum(PurchaseTypeEnum.class, purchaseTypeEnum);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static PurchaseTypeEnum getEnum(int purchaseTypeEnum)
    {
        return (PurchaseTypeEnum)getEnum(PurchaseTypeEnum.class, purchaseTypeEnum);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(PurchaseTypeEnum.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(PurchaseTypeEnum.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(PurchaseTypeEnum.class);
    }
}